﻿using Entity;

namespace Entity.Orders;

/// <summary>
/// 月产品订单
/// </summary>
public class Order_Ext_MonthProduct : BaseEntity
{
    /// <summary>
    /// 用户ID
    /// </summary>
    public int UserId { get; set; }

    /// <summary>
    /// 订单ID
    /// </summary>
    public int OrderId { get; set; }

    /// <summary>
    /// 产品ID
    /// </summary>
    public int ProductId { get; set; }

    /// <summary>
    /// 快递单号
    /// </summary>
    public int ExpressId { get; set; }

    /// <summary>
    /// 收货地址ID
    /// </summary>
    public int AddressId { get; set; }

    /// <summary>
    /// 订单信息
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(OrderId))]
    public Order? OrderInfo { get; set; }

    /// <summary>
    /// 产品信息
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(ProductId))]
    public MonthProduct? ProdcutInfo { get; set; }

    /// <summary>
    /// 快递信息
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(ExpressId))]
    public Express? ExpressInfo { get; set; }
}
